package com.mba.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.ListView;

import com.mba.adapter.ContentActivityAdapter;
import com.mba.adapter.ConversationActivityAdapter;
import com.mba.base.BaseActivity;
import com.mba.bean.pojo;

public class ConversationActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		NOTITLE();
		setContentView(R.layout.conversation_activity);
		ListView lv = (ListView) findViewById(R.id.conversation_listview);
		lv.setAdapter(new ConversationActivityAdapter(this, pojo.testMsg()));
		lv.setOnItemClickListener(new OnItemClickListener() {
			@Override
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
					long arg3) {
				
				Intent intent = new Intent(arg1.getContext(),ChartActivity.class);
				startActivity(intent);
			}
		});
	}
}
